
public class Counter {
    String id;
    int count;
    public Counter(String id){
        this.id = id;
        count = 0;
    }
    public void increment(){
        this.count++;
    }
    public int tally(){
        return count;
    }
    public String toString(){
        return id;
    }
}
